import * as index from '@/api/index.js'
export default {
	data() {
		return {
			menuButtonInfo: uni.getMenuButtonBoundingClientRect(),
			background: 'rgba(255, 132, 0, 0)'
		}
	},

	onShow() {

	},
	onLoad(option) {

	},
	onPageScroll(e) {
		if (e.scrollTop < 150) {
			this.background = `rgba(255, 132, 0, ${e.scrollTop/150})`
		} else {
			this.background = 'rgba(255, 132, 0, 1)'
		}
	},
	methods: {
		back() {
			this.$tools.back(1)
		},
		getKefuPhone() {
			index.getKefuPhone().then(res => {
				uni.makePhoneCall({
					phoneNumber: res.data //仅为示例
				});
			})
		},
	}
}